
<ul class="pagination">
    <?php if($paginator->onFirstPage()): ?>
        <li class="disabled">
            <span style="    height: 38px;line-height: 26px">首页</span>
        </li>
    <?php else: ?>
        <li>
            <a style="    height: 38px;line-height: 26px" href="<?php echo e($paginator->url(1) . '&limit=' . $paginator->perPage()); ?>">首页</a>
        </li>
    <?php endif; ?>

    
    <?php if($paginator->onFirstPage()): ?>
        <li class="disabled">
            <span style="    height: 38px;line-height: 26px">上一页</span>
        </li>
    <?php else: ?>
        <li>
            <a style="    height: 38px;line-height: 26px" href="<?php echo e($paginator->previousPageUrl() . '&limit=' . $paginator->perPage()); ?>">上一页</a>
        </li>
    <?php endif; ?>
    <li>
        <span data-toggle="tooltip" data-placement="bottom" title="输入页码，按回车快速跳转">
            第 <input type="text" class="text-center no-padding" value="<?php echo e($paginator->currentPage()); ?>" id="customPage" data-total-page="<?php echo e($paginator->lastPage()); ?>" style="width: 50px;">
            页 / 共 <?php echo e($paginator->lastPage()); ?> 页
        </span>
    </li>
    
    <?php if($paginator->hasMorePages()): ?>
        <li>
            <a style="    height: 38px;line-height: 26px" href="<?php echo e($paginator->nextPageUrl() . '&limit=' . $paginator->perPage()); ?>">下一页</a>
        </li>
    <?php else: ?>
        <li class="disabled">
            <span style="    height: 38px;line-height: 26px">下一页</span>
        </li>
    <?php endif; ?>
    
    <?php if($paginator->hasMorePages()): ?>
        <li>
            <a style="    height: 38px;line-height: 26px" href="<?php echo e($paginator->url($paginator->lastPage()) . '&limit=' . $paginator->perPage()); ?>">尾页</a>
        </li>
    <?php else: ?>
        <li class="disabled">
            <span style="    height: 38px;line-height: 26px">尾页</span>
        </li>
    <?php endif; ?>
</ul>
<script>
    $("#customPage").keydown(function(e){
        var a = $("#customPage").val();
        if(e.keyCode==13) {
            location.href = "<?php echo e($paginator->url(1) . "&limit=" . $paginator->perPage()); ?>"+"&page="+a;
        }
    })
</script>
